<template>
<div>

  <!--物资领用-->
  <div class="" v-if="lookType === 'materail_draw_apply'">

    <div>物料描述：{{detailData.materailDTOS[0].materailName}} </div>
    <div>物料编号：{{detailData.materailDTOS[0].materailNumber}} </div>
    <div>实际领用数量： {{parseInt( detailData.materailDTOS[0].actualQut)}} </div>
    <div>计量单位： {{detailData.materailDTOS[0].unit}} </div>
    <div>领用单位： {{detailData.receiveUnit}} </div>
    <div>领用人：{{detailData.receiveUserName }}</div>
    <div>单据创建人：{{detailData.creatorName }}</div>
    <div>项目名称：{{detailData.projectName}}</div>
    <div>单位工程名称：{{detailData.unitEngName }}</div>
    <div>工程类型：
      <span v-if="detailData.engType">
               {{ detailData.engType.name }}</span>
    </div>
    <div>领用批次：{{detailData.receiveBatch}} </div>
    <div>使用地点：{{detailData.useAddress}} </div>
    <div>领用时间：{{detailData.receiveTime}} </div>
    <div>领用仓库：{{detailData.repositoryName}} </div>
    <div>单价：{{detailData.materailDTOS[0].singlePrice}} </div>
    <div>金额：{{ detailData.materailDTOS[0].amount }}</div>
    <div>审核状态：
      <span v-if="detailData.status">
              {{detailData.status.name}}
            </span></div>
  </div>
  <!--退库-->
  <div class="" v-if="lookType === 'stock_return_apply'">

    <div>物料描述：{{detailData.materailDTOS[0].materailName}} </div>
    <div>物料编号：{{detailData.materailDTOS[0].materailNumber}} </div>
    <div>实际退库数量：  {{parseInt( detailData.materailDTOS[0].actualQut)}}  </div>
    <div>计量单位： {{detailData.materailDTOS[0].unit}} </div>
    <div>退库时间：{{detailData.returnTime}} </div>
    <div>领用单位： {{detailData.receiveUnit}} </div>
    <div>退库人：{{detailData.returnUserName }}</div>
    <div>单据创建人：{{detailData.creatorName }}</div>
    <div>项目名称：{{detailData.projectName}}</div>
    <div>单位工程名称：{{detailData.unitEngName }}</div>
    <div>工程类型：
      <span v-if="detailData.engType">
               {{ detailData.engType.name }}</span>
    </div>
    <div>退库批次：{{detailData.returnBatch}} </div>
    <div>使用地点：{{detailData.useAddress}} </div>
    <div>专业类别：{{detailData.professCate}} </div>
    <div>单价：{{detailData.materailDTOS[0].singlePrice}} </div>
    <div>金额：{{ detailData.materailDTOS[0].amount }}</div>
    <div>退库仓库：{{detailData.repositoryName}} </div>
    <div>退库部门：{{detailData.returnDepart}} </div>
    <div>审核状态：
      <span v-if="detailData.status">
              {{detailData.status.name}}
            </span></div>
  </div>
</div>
</template>

<script>
  let _this = null
  export default {
    name: "mobile-detail",
    components: {},
    props: {
      detailData:{
        type:Object,
        default(){
          return {}
        }
      },
      lookType:{
        type:String,
        default:''
      },
    },
    data() {
      return {}
    },
    computed: {},
    watch: {},
    created() {
      _this = this
    },
    mounted() {
    },
    methods: {}
  }
</script>

<style scoped lang="scss">

</style>
